package com.vader.flea.dto;

import com.vader.flea.entity.Shop;
import com.vader.flea.enums.ShopStateEnum;

import java.util.List;

public class ShopExecution {
    //结果标识
    private int state;

    //    状态标识
    private String stateInfo;

    //店铺数量
    private int count;

    //    操作的店铺
    private Shop shop;

    //shop列表
    private List<Shop> shopList;

    public ShopExecution() {
    }

    // 失败状态构造
    public ShopExecution(ShopStateEnum stateEnum) {
        this.state = stateEnum.getState();
        this.stateInfo = stateEnum.getStateInfo();
    }

    //重载成功状态(返回单个店铺)
    public ShopExecution(ShopStateEnum stateEnum,Shop shop) {
        this.state = stateEnum.getState();
        this.stateInfo = stateEnum.getStateInfo();
        this.shop=shop;
    }

    //重载成功状态(返回店铺列表)
    public ShopExecution(ShopStateEnum stateEnum,List<Shop> shopList) {
        this.state = stateEnum.getState();
        this.stateInfo = stateEnum.getStateInfo();
        this.shopList=shopList;
    }


    public int getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
    }

    public String getStateInfo() {
        return stateInfo;
    }

    public void setStateInfo(String stateInfo) {
        this.stateInfo = stateInfo;
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    public Shop getShop() {
        return shop;
    }

    public void setShop(Shop shop) {
        this.shop = shop;
    }

    public List<Shop> getShopList() {
        return shopList;
    }

    public void setShopList(List<Shop> shopList) {
        this.shopList = shopList;
    }
}
